<template>
    <el-space wrap :size="props.params.eltagSize">
      <div>
        <el-tag :type="props.params.styleClass(props.params.data)">{{
          props.params.text(props.params.data)
        }}</el-tag>
        <!-- {{props.params.styleClass}} -->
      </div>
    </el-space>
  </template>
  
  <script setup lang="ts">
  const props = withDefaults(
    defineProps<{
      params: any
    }>(),
    {
      params: {},
    }
  )
  onMounted(() => {
    console.log(props.params.data)
  })

  </script>
  
  <style scoped>
  .currency {
    color: blue;
  }
  </style>